#Makefile CardinoGen

#SRC=$(wildcard *.ml)
SRC=graphics.ml struct.ml objFile.ml image.ml oImage.ml app.ml test3D.ml obj_test.ml triangulation.ml
CMX=$(SRC:.ml=.cmx)
EXEC=../cardinogen

all: $(EXEC)

$(EXEC): $(CMX) main.ml
	        ${OCAML} -w -10 -w -5 -w -26 $(LIBDIR) $(LIB) $(CMX) main.ml -o $(EXEC)

%.cmx: %.ml
	$(OCAML) -w -10 -w -5  -c  $(LIBDIR) $(LIB) $<

clean:
	rm -f *~ *.o *.cm? ../cardinogen
# END

